home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 / Ham Radio 2000.iso / ham2000 / packet / p_tapr / tnchst / blptable.c < prev    next >
Text File  |  1991-01-01  |  2KB  |  60 lines

  1. /****** states and tables for blp.c   (c) 1990 Howard Goldstein ****/
  2.  
  3.  
  4.       /* supervisory */
  5. struct state_entry cdecl blps_table[NSSTATES][NSEVENTS] = {
  6. /*bsidle*/
  7. /* was "ring_in,BSLCSETUP, 0,0, 0,0, 0,0, send_cclrd,0, 0,0, "    */
  8. /*    - no longer matters cuz ring_in has to set up new state */
  9.  
  10. ring_in,0, 0,0, 0,0, 0,0, send_cclrd,0, 0,0,
  11.     0,BSRCSETUP, 0,0, 0,0, 0,0, 0,0 ,
  12.  
  13. /*bslcsetup*/
  14. 0,0, 0,0, 0,0, 0,0, clr_reply,BSIDLE, 0,0,
  15.     0,0, stopblp,BSCLEARWT, retrycc,BSLSETWT, retryfail,BSCLEARWT, 0,0,
  16.  
  17. /*bsrcsetup*//* collission here */
  18. collide,BSCLEARWT, 0,BSRSETWT, answered,BSDATA, 0,0, clr_reply,BSIDLE, 0,0,
  19.     0,0, stopblp,BSCLEARWT, 0,0, retryfail,BSCLEARWT, retrycs,0,
  20.  
  21. /*bslsetwt*/
  22. /*send_ca,0, 0,0, 0,0, caller_rdy,BSDATA, clr_reply,BSIDLE, 0,0,*/
  23.  
  24. /*send_ca,0, 0,0, 0,0, 0,0, stopblp,BSIDLE, 0,0,*/
  25. 0,0, 0,0, 0,0, 0,0, stopblp,BSIDLE, 0,0,
  26.     0,0, stopblp,BSCLEARWT, 0,0, retryfail,BSCLEARWT, caller_rdy,BSDATA,
  27.  
  28. /*bsrsetwt*/
  29. 0,0, 0,0, answered,BSDATA, 0,0, stopblp,BSIDLE, 0,0,
  30.     0,0, stopblp,BSCLEARWT, 0,0, retryfail,BSCLEARWT, 0,0,
  31.  
  32. /*bsclearwt*/
  33. 0,0, 0,0, 0,0, 0,0, clr_reply,BSIDLE, 0,BSIDLE,
  34.     0,0, 0,0, 0,0, 0,BSIDLE, retrycclr,BSIDLE,
  35.  
  36. /*bsdata*/
  37. /*0,0, 0,0, send_cca,0, 0,0, clr_reply,BSIDLE, 0,0, */
  38. 0,0, 0,0, 0,0, 0,0, clr_reply,BSIDLE, 0,0,
  39.     0,0, stopblp,BSCLEARWT, 0,0, retryfail,BSCLEARWT, 0,0 };
  40.  
  41.  
  42.  
  43.     /* data events */
  44. struct state_entry cdecl blpd_table[NDSTATES][NDEVENTS] = {
  45. /*bdidle*/
  46.     0,BDWAIT, 0,0, 0,0, send_dbusy,BDBSY, dataproc,0, ackproc,0, 0,0, 
  47.         send_cstrep,0,
  48.  
  49. /*bdwait*/
  50.     0,0, 0,BDIDLE, senddata,0, send_dbusy,BDBSYWT, dataproc,0, ackproc,0, 0,0, 
  51.         send_cstrep,0,
  52.  
  53. /*bdbsy*/
  54.     0,BDBSYWT, 0,0, 0,0, 0,0, dataproc,0, ackproc,0, send_cstrep,BDIDLE, 
  55.         send_cstrep,0,
  56.  
  57. /*bdbsywt*/
  58.     0,0, 0,BDBSY, senddata,0, 0,0, dataproc,0, ackproc,0, send_cstrep,BDWAIT,
  59.         send_cstrep,0 };
  60.